package com.chinasofti.io;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;

public class Demo09 {
        public static void main(String[] args) throws IOException {
            Scanner sc = new Scanner(System.in);
            FileWriter fw = new FileWriter("java0419\\a.txt");
            System.out.println("输入用户名");
            String username = sc.nextLine();
            System.out.println("输入密码");
            String password = sc.nextLine();
            fw.write(username);
            fw.write("\t");
            fw.write(password);
            fw.close();

        }

}
